package org.feiye.studyday25.review;

import java.io.*;

import org.feiye.studyday21.Student;

public class FanXuLieHua1 {

	public static void main(String[] args) {
		// 单个对象反序列化(输入对象信息)
		InputStream i = null;
		ObjectInputStream o = null;
		try {
			i = new FileInputStream("F:\\叶飞io测试\\XULIEHUA.txt");
			o = new ObjectInputStream(i);
			Student stu = (Student) o.readObject();
			System.out.println(stu);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (o != null)
				try {
					o.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			if (i != null)
				try {
					i.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}
	}

}
